home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / nullprog.doc < prev    next >
Text File  |  1995-03-31  |  3KB  |  74 lines

  1. (Comp.sys.handhelds) 
  2. Item: 3787 by Simone.Rapisarda at wolf.sublink.org 
  3. Author: [Simone Rapisarda] 
  4.   Subj: How to execute programs while editing on the 48 
  5.   Date: Tue Jul 30 1991 
  6.  
  7. After some hours of investigation i finally discovered how to execute  
  8. a program while there is a command line. 
  9.  
  10. ========================================================================== 
  11. To allow the execution of a program while there is a command line just put  
  12. the internal 40788 (null program) as the first command in that program.  
  13. This program to work while there is a command line must be assigned to a  
  14. key or included in a menu. 
  15. ========================================================================== 
  16.  
  17. When I discovered this undocumented feature I could not resist to write  
  18. a little program that allow me to move in the path while editing.  
  19. You can take it as an example of the unimaginable possibilities of this  
  20. feature. 
  21. The program consist of two parts, the first (K52.3) must be assigned  
  22. to the key 52.3 (the VISIT key), the second (INDIR: don't change its name)  
  23. must be stored in the home dir. 
  24.  
  25. Usually the VISIT capability is disabled when in program entry-mode, the  
  26. K52.3 program take advantage of this: when not in program entry-mode the  
  27. VISIT is enabled (as usual) otherwise it will appear a menu containing the  
  28. two commands UPDIR and HOME followed by all the subdirs of the current dir. 
  29.  
  30.  - Pressing UPDIR will take you one dir up (oh, magic!). 
  31.  - Pressing HOME will take you to the home dir. 
  32.  - Pressing another menu key assigned to a dir will take you to that dir. 
  33.  - Every time the menu will be updated with the content of the new dir 
  34.    you're in. 
  35.  
  36. So you can move up and down the path to take what you need. 
  37. If you are editing a pre-existing variable don't forget to return to the  
  38. original directory: the edited variable will be stored in the current dir. 
  39.  
  40. Here are the two programs in ASC format. 
  41.  
  42.  
  43. ------------------------- K52.3 -------------------------- 
  44. %%HP:; 
  45. "D9D20A1EE3D9D208870484E205094E4449425B2130D7FA3B2130F05F" 
  46. ------------------------- K52.3 -------------------------- 
  47.  
  48.  
  49. ----------------------------- INDIR ----------------------------- 
  50. %%HP:; 
  51. "D9D2047A20B51A1D9D2088704F61A184E205094E4449425B2130B2130C943204  
  52. 1A158CC18E681A59C1ED2A240853ED2A22C23030132881305BCF1C9432887042  
  53. C2304563284E205094E444942597632D0040544509B13632230C4232387C1D51  
  54. 12B2130DC9E" 
  55. ----------------------------- INDIR ----------------------------- 
  56.  
  57. BTW, here it is an undocumented internal address I discovered in my  
  58. investigations. It can be very useful for multi keys assignments. 
  59.  
  60. 40D93   if no command line then EVAL return else skip EVAL continue 
  61.  
  62. Sorry if my bad English caused any problem to you. 
  63.  
  64. Happy ASsigNing! 
  65.  
  66.                                                   RAP 
  67.   
  68.  
  69. --   
  70.  WolfNet BBS Pisa (Italy) Tel. +39-50-589050 300-14.4K Baud Matrix 2:332/602.0 
  71.  Simone Rapisarda - via FidoNet node 2:33/800 
  72.  UUCP: ...!gear!wolf!Simone.Rapisarda 
  73.  ARPA: Simone.Rapisarda@wolf.sublink.org 
  74.